<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Session class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysql-xdevapi-schemaobject.getschema.html">« SchemaObject::getSchema</a></li>
      <li style="float: right;"><a href="mysql-xdevapi-session.close.html">Session::close »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mysql-xdevapi.html">Mysql_xdevapi</a></li>
    <li>Session class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.mysql-xdevapi-session" class="reference">

 <h1 class="title">Session class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mysql-xdevapi &gt;= 8.0.11)</p>


  <div class="section" id="mysql-xdevapi-session.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="mysql-xdevapi-session.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">mysql_xdevapi\Session</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>close</strong></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>commit</strong></span>(): <span class="type">Object</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>createSchema</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$schema_name</code></span>): <span class="type"><a href="class.mysql-xdevapi-schema.html" class="type mysql_xdevapi\Schema">mysql_xdevapi\Schema</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>dropSchema</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$schema_name</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>generateUUID</strong></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getDefaultSchema</strong></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getSchema</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$schema_name</code></span>): <span class="type"><a href="class.mysql-xdevapi-schema.html" class="type mysql_xdevapi\Schema">mysql_xdevapi\Schema</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getSchemas</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getServerVersion</strong></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>listClients</strong></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>quoteName</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>releaseSavepoint</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>rollback</strong></span>(): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>rollbackTo</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>setSavepoint</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code><span class="initializer"> = ?</span></span>): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>sql</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>): <span class="type"><a href="class.mysql-xdevapi-sqlstatement.html" class="type mysql_xdevapi\SqlStatement">mysql_xdevapi\SqlStatement</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>startTransaction</strong></span>(): <span class="type"><span class="type void">void</span></span></div>

   }</div>


  </div>

 </div>

 































































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="mysql-xdevapi-session.close.html">Session::close</a> — Close session</li><li><a href="mysql-xdevapi-session.commit.html">Session::commit</a> — Commit transaction</li><li><a href="mysql-xdevapi-session.construct.html">Session::__construct</a> — Description constructor</li><li><a href="mysql-xdevapi-session.createschema.html">Session::createSchema</a> — Create new schema</li><li><a href="mysql-xdevapi-session.dropschema.html">Session::dropSchema</a> — Drop a schema</li><li><a href="mysql-xdevapi-session.generateuuid.html">Session::generateUUID</a> — Get new UUID</li><li><a href="mysql-xdevapi-session.getdefaultschema.html">Session::getDefaultSchema</a> — Get default schema name</li><li><a href="mysql-xdevapi-session.getschema.html">Session::getSchema</a> — Get a new schema object</li><li><a href="mysql-xdevapi-session.getschemas.html">Session::getSchemas</a> — Get the schemas</li><li><a href="mysql-xdevapi-session.getserverversion.html">Session::getServerVersion</a> — Get server version</li><li><a href="mysql-xdevapi-session.listclients.html">Session::listClients</a> — Get client list</li><li><a href="mysql-xdevapi-session.quotename.html">Session::quoteName</a> — Add quotes</li><li><a href="mysql-xdevapi-session.releasesavepoint.html">Session::releaseSavepoint</a> — Release set savepoint</li><li><a href="mysql-xdevapi-session.rollback.html">Session::rollback</a> — Rollback transaction</li><li><a href="mysql-xdevapi-session.rollbackto.html">Session::rollbackTo</a> — Rollback transaction to savepoint</li><li><a href="mysql-xdevapi-session.setsavepoint.html">Session::setSavepoint</a> — Create savepoint</li><li><a href="mysql-xdevapi-session.sql.html">Session::sql</a> — Execute SQL query</li><li><a href="mysql-xdevapi-session.starttransaction.html">Session::startTransaction</a> — Start transaction</li></ul>
</div>
</div></div></body></html>